package com.ruoyi.project.system.login.service.impl;

import com.ruoyi.project.system.login.domain.MiniSysUser;
import com.ruoyi.project.system.login.mapper.MiniSysUserMapper;
import com.ruoyi.project.system.login.service.IMiniSysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MiniSysUserServiceImpl implements IMiniSysUserService {

    @Autowired
    private MiniSysUserMapper miniSysUserMapper;

    @Override
    public MiniSysUser selectMiniSysUserByUnameAndPwd(String loginName, String password) {
        return miniSysUserMapper.selectMiniSysUserByUnameAndPwd(loginName,password);
    }

    @Override
    public MiniSysUser selectMiniSysUserByLoginName(String loginName) {
        return miniSysUserMapper.selectMiniSysUserByLoginName(loginName);
    }
}
